import Login from "../pages/login";
import Register from "../pages/register";
import BlogList from "../pages/blogs";
import MobileLogin from "../pages/mobile-login";

// 配置前端路由表
const routes = [
  {
    path: "/login",
    component: Login,
  },
  {
    path: "/register",
    component: Register,
  },
  {
    path: "/blogs",
    component: BlogList,
  },
  {
    path: "/mobile/login",
    component: MobileLogin,
  },
];

// 不需要校验的路由，也就是白名单
const whiteList = ["/login", "/register"];

export { routes, whiteList };
